<?php

namespace App\Exceptions;

use App\Common\Traits\ApiResponse;
use Exception;

class InvalidRequestException extends Exception
{
    use ApiResponse;

    public function __construct(string $message = "", int $code = 400)
    {
        parent::__construct($message, $code);
    }

    public function render()
    {
        return $this->failed($this->message, $this->code);
    }
}
